import axios from 'axios'
import request from '@/utils/request'
import global from "@/utils/global";
export default {
    add:function (newsModule) {
        return request({
            url:'/hnister-news-service/newsModule',
            method:'post',
            data:newsModule
        })

    },
    findAll:function () {
        return request({
            url:'/hnister-news-service/newsModules',
            method:'get'
        })

    },
    deleteById:function(id){

        return request({
            method:'delete',
            url:'/hnister-news-service/newsModule/'+id,
        })
    },
    edit:function (module) {
        return request({
            method:'put',
            data:module,
            url:'/hnister-news-service/newsModule',
        })

    }
}
